import request from "@/utils/request";
import defaultSettings from "@/settings";

//首页待办任务
export function toDoListData() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/main/Cnpas2ToList/search`,
    method: "post",
  });
}
//异常处理
export const toDoListDataApi = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/main/Cnpas2ToList/search`,
};
//异常处理
export const exceptionHandlerApi = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/exceptionHandling/ExceptionHandling/search`,
};

//账号余额
export function accountBalanceData() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/main/Cnaps2AccountBalance/search`,
    method: "post",
  });
}

//业务监控
export const bizMonitor = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/msgManageControl/MailSendDtl/search`,
};

export function getCnpas2UserInfo() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/main/Cnpas2UserInfo/info`,
    method: "post",
    data: {},
  });
}

export function getCnaps2TransactionSummary() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/main/Cnaps2TransactionSummary/search`,
    method: "get",
  });
}
